package com.atguigu.guli.service.oss;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//当前项目不需要使用数据库连接，但是必须引入service-base项目(包含了数据库的依赖)的依赖 使用swagger
//导致项目启动时会自动配置数据库连接池，启动失败
@EnableDiscoveryClient
@EnableTransactionManagement //启用声明式的事务
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@ComponentScan(basePackages = "com.atguigu.guli.service") //扫描组件：
public class ServiceOssApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceOssApplication.class , args);
    }
}
